package com.domain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("政策文件")
public class BizFileShare implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("分类id")
    private String categoryId;

    @ApiModelProperty("文件id")
    private String fileId;

    @ApiModelProperty("上传人id")
    private String uploadPersonId;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("上传人姓名")
    @TableField(exist = false)
    private String uploadPersonName;

    @ApiModelProperty("文件名")
    @TableField(exist = false)
    private String fileName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date uploadTime;


}
